package com.pig4cloud.mall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * sku的库存
 *
 * @author fangyu
 * @date 2020-12-26 23:41:08
 */
@Data
@TableName("pms_sku_stock")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "sku的库存")
public class SkuStock extends Model<SkuStock> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long productId;
    /**
     * sku编码
     */
    @ApiModelProperty(value="sku编码")
    private String skuCode;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private BigDecimal price;
    /**
     * 库存
     */
    @ApiModelProperty(value="库存")
    private Integer stock;
    /**
     * 预警库存
     */
    @ApiModelProperty(value="预警库存")
    private Integer lowStock;
    /**
     * 展示图片
     */
    @ApiModelProperty(value="展示图片")
    private String pic;
    /**
     * 销量
     */
    @ApiModelProperty(value="销量")
    private Integer sale;
    /**
     * 单品促销价格
     */
    @ApiModelProperty(value="单品促销价格")
    private BigDecimal promotionPrice;
    /**
     * 锁定库存
     */
    @ApiModelProperty(value="锁定库存")
    private Integer lockStock;
    /**
     * 商品销售属性，json格式
     */
    @ApiModelProperty(value="商品销售属性，json格式")
    private String spData;
    }
